<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
		<title>Magic Squares</title>
		<style type="text/css">
			html,body{width:100%;height:100%;margin:0;background:#333;}
			div{background:#fff;font-family:Consolas;padding:.5em;margin:.5em;}
		</style>

		<script type="text/javascript" src="tgd/Math/MagicSquare.js"></script>

		<script type="text/javascript">
			//<![CDATA[

			function init() {
				var body = document.getElementById("body");
				for (var i = 5; i < 29; i += 2) {
					var div = document.createElement("div");
					var bob = new tgd.Math.MagicSquare(i);
					div.innerHTML = bob;
					body.appendChild(div);
				}
			}

		//]]>
		</script>

	</head>
	<body id="body" onload="init();">
	</body>
</html>
